GetNextProcess
GetNextProcess Get the process serial number of the next process
ProcessSerialNumber *PSN ; a valid process serial number pointer
returns Error Code; 0=no error
You use the GetNextProcess to get the process serial number of the next
process
PSN is a pointer to a valid process serial number returned from
LaunchApplication , GetNextProcess , GetFrontProcess , or
GetCurrentProcess , or the defined constant kNoProcess.
Returns: an operating system Error Code.
noErr (0) No error
paramErr (-50) Process serial number is invalid
procNotFound (-600) No process in the process list following the specified
process

Notes: You can use the returned process serial number from this function in
other Process Manager routines. You can also use this process serial
number to specify a target application when your application sends a
high-level event.